#ifndef _COMMON_H
#define _COMMON_H

#define LINEEND "\r\n"
#define LISTENQ 5
#define MAXSIZE 2560
#define MAXPATH 64
#define USERNAMEMAX 32
#define MAXFD 64
#define FLAGS S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH

int quit;
int default_port;
int islocal;

int pasv_fd;
int pasv_con_fd;
int pasv_port;

int port_con_fd;
int port_port;
/*
 *timeout control. timeout_type=1, control_timeout; 0, data_timeout;
 */
int timeout_type;
int control_timeout;
int data_timeout;
/*
 *client ip of the PORT mode
 */
struct sockaddr_in dataip;

#endif
